<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script type="text/javascript">
</script>
<script type="text/javascript" src="${staticPath}/js/intent/selectContract.js"></script>
<div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                 <h4 class="modal-title">合同查询</h4>
            </div>
            <div class="modal-header">
                <input type="text" id="contractno" name="contractNo" maxlength="200" placeholder="合同编码"/>
                 <input type="text" id="subject" name="subject" maxlength="200" placeholder="合同名称"/>
                 <input type="text" id="suppliername" name="supplierName" maxlength="200" placeholder="供应商名称"/>
                <button type="button" id="queryContract" class="btn btn-success btn-sm Paging_3">查询</button>
            </div>	
            <form id="intentForm" method="get"></form>		<!-- /modal-header -->
            <div class="modal-body">
         	 	<table class="table table-striped table-hover o-l-table" id="modalTable">
			<thead>
				<tr>
					<th style="width: 1px"><input type="checkbox" data-ckb="all"></th>
						<th>合同号</th>
						<th>合同名称</th>
						<th>供应商名称</th>
				</tr>
			</thead>
			<tbody id="intAssociatedTbody">
			<c:forEach items="${page.list}" var="associatedContract">
				<tr data-herf="${contextPath}/biz/contract/associated/${associatedContract.id}/view" data-target="_self">
					<td class="o-l-tab-ckb" >
						<input type="checkbox" data-ckb-id="${associatedContract.id}">
					</td>
					<td>${associatedContract.contractNo}</td>
					<td>${associatedContract.subject}</td>
					<td >${associatedContract.supplierName}</td>
				</tr>
				</c:forEach>
			</tbody>
		</table>
		 <div class="Paging">
             <div class="col-xs-6">
             		<input type="hidden" id="pageNo" value="${page.pageNo}">
             		<input type="hidden" id="pageSize" value="${page.pageSize}">
             		<input type="hidden" id="total" value="${page.total}">
                  <ul class="pagination">
						<li id="lastPageLi" class="disabled"><a href="#" id="lastPage">&laquo;&nbsp;上一页</a>
						</li>
                      	<li id="nextPageLi"><a href="#" id="nextPage">下一页&nbsp;&raquo;</a></li>
                  </ul>
             </div>
             <div class="col-xs-6">
                  <div class="pull-right">
                       <span class="Paging_2" id="pageNoSpan">第${page.pageNo}页</span>&nbsp;&nbsp;
                       <span class="Paging_2" id="totalSizeSpan">共${totalSize}页</span>
                       <span>到</span><input class="form-control_1 input-sm input-goto MaoYe-form-TiaoZhuan" id="gotoPageNo" name="gotoPageNo" type="text">
                       <span>页</span>
                       <button type="button" id="goto" class="btn btn-default btn-sm Paging_3">跳转</button>
                  </div>
             </div>
        </div> 
            </div>			
            <!-- /modal-body -->
            <div class="modal-footer">
                <a class="btn btn-primary" type="button" role="button" onclick="btnOK_click()" id="ok">确定</a>
                 <button type="button"  class="btn btn-default" data-dismiss="modal">关闭</button>
            </div>			
            <!-- /modal-footer -->
        </div>         
        <!-- /modal-content -->
    </div>     
</body>
<script type="text/javascript" src="${staticPath}/js/list.js"></script>